package com.gdufe.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

@Data
@TableName("seckill_relation")
public class RelationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 秒杀商品id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 商品id
	 */
	private Long productId;
	/**
	 * 场次id
	 */
	private Long sessionId;
	/**
	 * 秒杀价格
	 */
	private BigDecimal seckillPrice;
	/**
	 * 秒杀商品数量
	 */
	private Integer seckillCount;
	/**
	 * 购买数量最大限制
	 */
	private Integer seckillLimit;
	/**
	 * 秒杀状态[0->不启用，1->启用]
	 */
	private Integer seckillStatus;

}
